/**
 * Created by ZE-C on 2017/8/12.
 */
import { NgModule } from '@angular/core';
import {HeroChildComponent} from "./components/hero-child/hero-child";
import {HeroParentComponent} from "./components/hero-parent/hero-parent";
import { CommonModule } from '@angular/common';
import {SingleComponent} from "./components/single/single";
import {FormsModule} from "@angular/forms";
import {MissionService} from "./service/mission.service";
import {HighlightDirective} from "./directives/highlight.directive";
import {ToNumPipe} from "./pipe/tonum.pipe";
import {Page1Component} from "./components/page1/page1";
import {Page2Component} from "./components/page1/page2";
import {RouterModule, Routes} from '@angular/router';
import {SubPage2Component} from "./components/page1/subpage1";
import {RxjsPageComponent} from "./rxjs_study/rxjs.component";
import {Myervice} from "./rxjs_study/rxjs.service";
import { ReactiveFormsModule } from '@angular/forms';
import {DropdownModule} from "primeng/primeng";

@NgModule({
  declarations: [
    HeroChildComponent,
    HeroParentComponent,
    SingleComponent,
    HighlightDirective,
    ToNumPipe,
    Page1Component,
    Page2Component,
    SubPage2Component,
    RxjsPageComponent
  ],
  imports: [
    CommonModule,
    FormsModule,
    RouterModule,
    ReactiveFormsModule,
    DropdownModule
  ],
  exports: [
    DropdownModule,
    HeroParentComponent,
    SingleComponent,
    Page1Component,
    Page2Component,
    ToNumPipe,
    SubPage2Component
  ],
  providers:[
    MissionService,
    Myervice
  ]
})
export class Module1 { }
